<form class="form-inline form-search clearfix" ng-submit="list.search()">
    <div class="input-group">
        <input type="text" ng-model="list.filter.name" class="form-control" placeholder="请输入组名称查询">
        <span class="input-group-btn">
            <button class="btn btn-default" title="查询" type="submit"><i class="fa fa-search"/></button>
            <button class="btn btn-default" title="添加组" ng-click="list.openGroupFrom()" type="button"><i class="fa fa-plus"/></button>
        </span>
    </div>
</form>
<table class="table table-hover group-table">
    <tbody>
    <tr ng-class="{'group-checked': list.checkedId == ''}">
        <td class="row-head">
            <a href="javascript:void(0)" ng-click="list.groupChecked({'groupId':'','groupCode':''})" >全部</a>
            <div class="toolbox">
                <a ng-click="list.prevPage()" ng-class="{'disabled': list.notPreviousPage}" title="上一页"><i class="fa fa-chevron-left"></i></a>
                <a ng-click="list.nextPage()" ng-class="{'disabled': list.notNextPage}" title="下一页"><i class="fa fa-chevron-right"></i></a>
            </div>
        </td>
    </tr>
    <tr ng-class="{'group-checked': list.checkedId == elem.groupId}" ng-repeat="elem in list.table">
        <td class="row-head" ng-switch="elem.oprLoading">
            <a href="javascript:void(0)" ng-click="list.groupChecked(elem)" title="{{::elem.groupCode}}">{{::elem.groupCode}}</a>
            <div class="toolbox" ng-switch-default>
                <a ng-click="list.openGroupFrom(elem)" title="编辑"><i class="fa fa-pencil"></i></a>
                <a ng-click="list.deleteGroup(elem)" title="删除"><i class="fa fa-times fa-lg"></i></a>
            </div>
            <div class="toolbox tb-loading" ng-switch-when="true"><div class="loading-sm"/></div>
        </td>
    </tr>
    </tbody>
</table>
<div class="loading" ng-show="!list.table"></div>